package com.seek.model.authcheck;

import java.util.Date;

/**
 * 运营商通话记录对象模型
 * Created by weh on 2017/7/3.
 */
public class CarrierCallModel implements Comparable<CarrierCallModel> {

  private Date time;
  private String peerNumber;



  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }

  public String getPeerNumber() {
    return peerNumber;
  }

  public void setPeerNumber(String peerNumber) {
    this.peerNumber = peerNumber;
  }

  @Override
  public int compareTo(CarrierCallModel o) {
    long compare = this.getTime().getTime() - o.getTime().getTime();
    return compare > 0L ? 1 : 0;
  }
}
